import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'

import 'highlight.js/styles/monokai-sublime.css'
import '@/assets/css/global.css';
import request from './utils/request';

Vue.config.productionTip = false
Vue.use(ElementUI,{size:'small'});

Vue.prototype.$baseUrl='http://localhost:8080'
Vue.prototype.$request=request
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
import Prism from 'prismjs';
// main.js
import createCopyCodePlugin from '@kangc/v-md-editor/lib/plugins/copy-code/index';
import '@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css';
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import '@kangc/v-md-editor/lib/plugins/copy-code/preview';
import VMdPreviewHtml from '@kangc/v-md-editor/lib/preview-html';
import createEmojiPlugin from '@kangc/v-md-editor/lib/plugins/emoji/index';
import '@kangc/v-md-editor/lib/plugins/emoji/emoji.css';
import createCopyCodePreview from '@kangc/v-md-editor/lib/plugins/copy-code/preview';
VMdPreviewHtml.use(createCopyCodePreview());
import createLineNumbertPlugin from '@kangc/v-md-editor/lib/plugins/line-number/index';
VueMarkdownEditor.use(vuepressTheme, {
  Prism,
});
Vue.use(VueMarkdownEditor);
// vuepressTheme主题
VMdPreview.use(vuepressTheme,{
  Prism
})
Vue.use(VMdPreview)
// emoji

VMdPreview.use(createEmojiPlugin());
// 显示代码行数


VMdPreview.use(createLineNumbertPlugin());


Vue.prototype.$baseUrl=process.env.VUE_APP_BASEURL
console.log(process.env.VUE_APP_BASEURL)
VMdPreview.use(createCopyCodePlugin());
VueMarkdownEditor.use(createCopyCodePlugin());

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
